package com.mywork.mvpkodeinxml.model.response

import org.simpleframework.xml.Element
import org.simpleframework.xml.Namespace
import org.simpleframework.xml.Root

/**
 * Created by mywork on 17/3/16.
 */
@Root(name = "Envelope")
class CommonResp {
    @set:Element(name = "Body")
    @get:Element(name = "Body")
    var body: ResponseBody? = null

    @Root(name = "Body")
    class ResponseBody {
        @get:Element(name = "CommonFuncResponse", required = false)
        @set:Element(name = "CommonFuncResponse", required = false)
        var commonFuncResponse: ResponseModel? = null

        @Root(name = "CommonFuncResponse")
        @Namespace(reference = "http://tempuri.org/")
        class ResponseModel {
            @get:Element(name = "CommonFuncResult")
            @set:Element(name = "CommonFuncResult")
            var commonFuncResult: String? = null
        }
    }
}
